package com.edu.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: myApp
 * @Titile: LoginDTO
 * @Author: Administrator
 * @Description: 登录DTO
 */
@Data
public class LoginDTO {
    @NotBlank(message = "登录的用户名不能为空")
    private String username;
    @NotBlank(message = "登录密码不能为空")
    @Length(max = 12,min = 6,message = "密码不合法,最大长度为{max},最小为{min}")
    private String password;
    // ...
}
